package com.telnikoff.ts.core;

import java.io.File;

public class Project 
{
	private final Workspace workspace;
	private final String name;
	
	Project(Workspace workspace, String name)
	{
		this.workspace = workspace;
		this.name = name;
	}
	
	Project(Workspace workspace, File file)
	{
		this.workspace = workspace;
		this.name = "loaded_from_file";
	}
	
	public void save()
	{
		workspace.save(this);
	}
	
	public String toString()
	{
		return "Project '"+name+"'";
	}

}